package cn.javaxc.mvcwork.controller;



public final class MVCConstant {
  public final static String fs = System.getProperty("file.separator");
	public static char[] code = { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l',
            'm', 'n', 'o','p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y',
            'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L',
            'M', 'N', 'O','P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y','Z'};
	public final static String PROCESS_FILE_ACTION = "ProcessFile/GetLibFile.do";
  public final static String CFS_USER_REALM = "Fumine CRM";
  public final static String DB_CODE = "GATEKEEPER.DBCODE";
  public final static String TTPAction_SUFFUX=".mvc";
  public static String mvc_page_list="pagination";
  public static String JSPCTX="/WEB-INF/templates/jsp";
  public final static String STATICCTX="static/";
  //Using int for boolean
  public final static int UNDEFINED = -1;
  public final static int TRUE = 1;


  public final static int CONTACTS = 2;

  //Synchronization API
  public final static int NO_SYNC = -1;


  //Not sure
  public final static int CAMPAIGN_CONTACT_ID = 9;

  //Usage tracking
  public final static int USAGE_FILE_UPLOAD = 1;
  public final static int USAGE_FILE_DOWNLOAD = 2;
  public final static int USAGE_COMMUNICATIONS_EMAIL = 3;
  public final static int USAGE_COMMUNICATIONS_FAX = 4;

  //Task Categories
  public final static int TASK_CATEGORY_PROJECTS = 4;

  //TODO: Add lookup lists here...

  //Action Lists
  public final static int ACTIONLISTS_CONTACTS = 2;

  //User types
  //Users who use CRM with its complete license
  public final static int ROLETYPE_REGULAR = 0;

  // Restricted to account accounts of their organization
  public final static int ROLETYPE_PORTAL = 1;







  //Error messages
  public final static String NOT_FOUND_ERROR = "NOT_FOUND_ERROR";
  public final static String NOT_FOUND_JSPPAGE = "NOT_FOUND_JSPPAGE";
  //invalid site id
  public final static int INVALID_SITE = -2;

  //Multiple search
  public final static String ALL = "ALL";
  public final static String ANY = "ANY";

  //Create Params Method
  public final static String STRING = "string";
  public final static String INT = "int";

    /** 登录用户Shiro权限缓存KEY前缀 */
    public static String PREFIX_USER_SHIRO_CACHE  = "shiro:cache:cn.javaxc.modules.shiro.authc.ShiroRealm.authorizationCache:";
    /** 登录用户Token令牌缓存KEY前缀 */
    public static final String PREFIX_USER_TOKEN  = "prefix_user_token_";
    /** Token缓存时间：3600秒即一小时 */
    public static final int  TOKEN_EXPIRE_TIME  = 3600;
}
